package com.foodplus.www.api.services;

import com.foodplus.www.bean.basket.AddGoodBean;
import com.foodplus.www.bean.basket.BasketBean;
import com.foodplus.www.bean.basket.BasketGoodNumBean;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by WangZhiChao on 2016/11/2.
 */

public interface BasketService {

    @FormUrlEncoded
    @POST("?act=member_cart&op=cart_list")
    Observable<BasketBean> getBasketList(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST("?act=member_cart&op=cart_add")
    Observable<AddGoodBean> addToBasketList(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST("?act=member_cart&op=cart_edit_quantity")
    Observable<BasketGoodNumBean> getBasketGoodNumList(@FieldMap Map<String, String> params);

}
